﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using ImageProcessingLibrary;
using TextToSpeechEngine;

namespace BinocularVision
{
    public class TextToSpeechBrainProcess : BrainProcess
    {
        #region Fields
        private TTSEngine ttsEngine;
        #endregion

        #region Public methods
        public TextToSpeechBrainProcess()
        {
            this.ttsEngine = new TTSEngine();
        }

        public override void Initialize()
        {
            base.Initialize();
            this.ttsEngine.LoadFromFile("phonemedatabase", "wordphenomenedatabase.txt");
        }

        public override void Step()
        {
            if (CurrentState == 0)
            {
                ttsEngine.readLine("Hello");
                CurrentState = 1;
            }
            else if (CurrentState == 1)
            {
                this.Utility = -1;
            }
        }
        #endregion
    }
}
